package com.wiscamp.ninechapters.problems.math;

import com.wiscamp.ninechapters.common.core.ParseHelper;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;


/**
 * 线上的点
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class LatexPointDenote extends LatexGeometryDenote {
    private BigDecimal value;

    public String getLatex() {
        return String.valueOf(value);
    }

    public LatexPointDenote(BigDecimal value) {
        this.value = value;
    }

    public LatexPointDenote(String valueText) {
        this.value = ParseHelper.parseBigDecimal(valueText);
    }
}
